package cn.edu.eight.food.dao;


import cn.edu.eight.food.model.OfComment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface OfCommentMapper {
    int insert(OfComment record);

    int insertSelective(OfComment record);

    List<OfComment> findByFoodId(@Param("foodId") String foodId);

    List<Map> findCommentAll();
}